package com.yqg.protection.mapper;

import com.yqg.protection.entity.Announce;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxf
 * @since 2024-10-12
 */
@Mapper
public interface AnnounceMapper extends BaseMapper<Announce> {

    List<Announce> findByUserId(Integer pageNum, Integer pageSize, Integer level, Long organizationId, String isAllClient, List<Long> clientIds, Long userId);

    Long findByUserIdCount(Integer level, Long organizationId, String isAllClient, List<Long> clientIds, Long userId);

    List<Announce> findPage(Integer pageNum, Integer pageSize, String searchParam, Integer level, Long organizationId, String isAllClient, List<Long> clientIds, String startTime, String endTime);

    Long findPageCount(String searchParam, Integer level, Long organizationId, String isAllClient, List<Long> clientIds, String startTime, String endTime);

    List<Announce> exportData(String searchParam, Integer level, Long organizationId, String isAllClient, List<Long> clientIds, String startTime, String endTime);
}
